<template>
  <div class="back" @click="totop">
    <img src="../../../assets//img/home/backtop2.png" alt="" />
  </div>
</template>

<script>
import {} from 'vue'
export default {
  setup(props, _) {
    const totop = () => {
      _.emit('totop')
    }
    return {
      totop
    }
  }
}
</script>

<style lang="less" scoped>
.back {
  position: fixed;
  bottom: 70px;
  right: 20px;
  z-index: 9999;
}
</style>
